package main.java.design.flyweight;

/**
 * <p>
 *     围棋落子位置.外部状态
 * </p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/15 21:44
 */
public class Position {

    private Integer x;
    private Integer y;

    public Position(Integer x, Integer y) {
        this.x = x;
        this.y = y;
    }

    public Integer getX() {
        return x;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public Integer getY() {
        return y;
    }

    public void setY(Integer y) {
        this.y = y;
    }

    @Override
    public String toString() {
        return "Position{" +
                "x=" + x +
                ", y=" + y +
                '}';
    }

}
